# Use this settings (sessions, etc.) for debug version only!
# It can be unsafe on a real chikiwiki.ru

# Use this settings (sessions, etc.) for debug version only!
# It can be unsafe on a real site

import os

APP_ID = "789"

MAMBA_SECRET_KEY = "Y82Mjvn4QK8OU6t3Mr96" # do not overlap with SECRET_KEY of Django

DEBUG = False
EMAIL_BACKEND = "django.core.mail.backends.smtp.EmailBackend"
#DEBUG = True
#EMAIL_BACKEND = "django.core.mail.backends.filebased.EmailBackend"
#EMAIL_FILE_PATH = os.path.join(os.path.dirname(__file__), "../temp/email/" )
TEMPLATE_DEBUG = DEBUG
#SESSION_ENGINE = "django.contrib.sessions.backends.signed_cookies"
#SESSION_ENGINE = "django.contrib.sessions.backends.file"
SESSION_ENGINE = "django.contrib.sessions.backends.signed_cookies"

SESSION_FILE_PATH = os.path.join(os.path.dirname(__file__), "../tempsvaha/sessions/" ) 

MEDIA_ROOT = os.path.join(os.path.dirname(__file__), "static/user/" )

DATABASES = {
    'default': {
        'ENGINE': 'django.db.backends.mysql', # Add 'postgresql_psycopg2', 'mysql', 'sqlite3' or 'oracle'.
        'NAME': 'svaha',                      # Or path to database file if using sqlite3.
        # The following settings are not used with sqlite3:
        'USER': 'uwww',
        'PASSWORD': 'SECRET',
        'HOST': '',                      # Empty for localhost through domain sockets or '127.0.0.1' for localhost through TCP.
        'PORT': '',                      # Set to empty string for default.
    }
}
